import {http} from './request.js'
export const businessAPI ={
    getBusiness:(id)=>http.secure.get(`/businesses/${id}`),
    updateBusiness:(id,data)=>http.secure.put(`/businesses/${id}`,data),
    deleteBusiness:(id)=>http.secure.delete(`/businesses/${id}`),
    patchBusiness:(id,data)=>http.secure.patch(`/businesses/${id}`,data),
    getBusinesses:() => http.public.get('/businesses'),
    addBusiness:(data)=>http.secure.post('/businesses',data),
}